package com.qf.ks.mapper;

import com.qf.ks.pojo.Categories;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

public interface CategoriesMapper {
    @Insert("insert into categories(categoryname)values (#{categoryname});")
    void AddCategories(String categoryname);
    @Select("select * from categories where categoryname=#{categoryname};")
    Categories SelectCategoriesByname(String categoryname);
    @Select("select categoryid,categoryname from categories where categoryid=#{categoryid}")
    Categories CategoriesById(long categoryid);
}
